<template>
    <div class="app_content">
        <div class="header">
            <div class="journalism_details_breadcrumb">
                <el-breadcrumb separator-class="el-icon-arrow-right">
                    <el-breadcrumb-item>您的位置</el-breadcrumb-item>
                    <el-breadcrumb-item :to="{ path: '/success-case' }">应用案例</el-breadcrumb-item>
                    <el-breadcrumb-item>案例详情</el-breadcrumb-item>
                </el-breadcrumb>
            </div>
        </div>
        <h3>案例 {{ data.key }}</h3>
        <div v-if="data.intruduce">{{ data.intruduce }}</div>
        <div>{{ data.target }}</div>
        <img v-if="data.url1" :src="data.url1" alt="" style="width: 100%;height: 400px;">
        <div class="item" v-if="data.done">
            <span>{{ data.done.title }}</span>
            <div v-for="(item, index) in data.done.list" :key="index">{{ item }}</div>
        </div>
        <div class="item" v-if="data.custom">
            <span>{{ data.custom.title }}</span>
            <div v-for="(item, index) in data.custom.list" :key="index">{{ item }}</div>
        </div>
        <img v-if="data.url2" :src="data.url2" alt="" style="width: 100%;height: 400px;">

    </div>
</template>

<script>
import { List } from './ProductData'
export default {
    data() {
        return {
            data: null,
            url: null
        };
    },
    components: {},
    watch: {},
    created() {
        JSON.parse(JSON.stringify(List)).forEach(el => {
            if (this.$route.query.key == el.key) {
                this.data = el
            }
        })
        console.log(this.$route.query.key);
    },
    methods: {},
    computed: {},
}
</script>

<style scoped>
.journalism_details_breadcrumb {
    width: 100%;
    margin: auto;
    padding: 1% 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
}

.journalism_details_breadcrumb>>>.el-breadcrumb__inner {
    font-weight: normal;
    /* color: #ffffff; */
}

.header {
    position: relative;
}

.header img {
    width: 100%;
    height: 100%;
}

.app_content {
    width: 100%;
    min-height: calc(100vh - 260px);
    padding: 0 10%;
}

h3 {
    padding: 50px 0;
    width: 100%;
    text-align: center;
    font-size: 26px;
}
div{
    margin: 10px 0;
}
span{
    color: rgb(54, 85, 165);
    font-weight: 500;
}
</style>